package com.xjs.id;

import java.util.UUID;

/**
 *
 */
public class Uid {
    /**
     * @Description 获取全局uid
     * @param
     * @return java.lang.String
     */
    public static String getUid(){
        return UUID.randomUUID().toString();
    }

    /**
     * @Description 获取全局uid hash值
     * @UserModule: exam-web-paper
     * @param
     * @return int
     */
    public static int getUidInt(){
        return getUid().hashCode();
    }
}
